package swing;

import model.Entity;

import javax.swing.*;
import java.awt.*;

import static java.awt.BorderLayout.NORTH;

public class EntityPanel<List, Key, Item> extends JPanel {
    /**
     *
     */
    private static final long serialVersionUID = -2155663923832621157L;

    public EntityPanel(FormPanel<Item> form, StackPanel<List, Item> stackPanel) {
        super(new BorderLayout());
        add(form, NORTH);
        add(stackPanel);
    }

    public EntityPanel(Entity<Key, Item> entity) {
        add(new EntityTable<>(entity));
    }
}
